﻿<%@ Page Title="Sản Phẩm : {0}" Language="C#" MasterPageFile="~/Home.master" AutoEventWireup="true" CodeFile="ShowProduct.aspx.cs" Inherits="ShowProduct" %>
<%@ Register src="Controls/ProductsSameDepartment.ascx" tagname="ProductsSameDepartment" tagprefix="uc3" %>
<%@ Import Namespace="DTO" %>
<asp:Content ID="Content1" ContentPlaceHolderID="LeftContent" Runat="Server"></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div class="title">
        Chi Tiết Sản Phẩm</div>
<div class="body">
<table width="100%">
    <tr>
        <td colspan="2">
        <asp:Label runat="server" ID="lblTitle" CssClass="titleProduct" />  
        <asp:Panel runat="server" ID="panEditProduct">            
        <asp:HyperLink runat="server" ID="lnkEditProduct" ImageUrl="~/Images/Edit.gif"
        ToolTip="Edit product" NavigateUrl="~/Admin/AddEditProduct.aspx?ID={0}" />
            &nbsp;
        <asp:ImageButton runat="server" ID="btnDelete"
        CausesValidation="false" AlternateText="Delete product" ImageUrl="~/Images/Delete.gif" 
                OnClientClick="if (confirm('Bạn có thực sự muốn xóa sản phẩm này ?') == false) return false;" 
                onclick="btnDelete_Click"/>
        </asp:Panel>       
        </td>        
    </tr>
    <tr>
        <td style="width:200px;" align="center">
            <asp:Image runat="server" ID="imgProduct" />            
        </td>
    </tr>
    <tr>
        <td style="padding:10px;">
            <table width="100%">
                <tr>
                    <td>
                        <asp:Panel ID="Panel1" runat="server" >
                            <s>Giá : <asp:Label runat="server" ID="lblGiaGoc" ForeColor="Red" Text="" /></s><br />
                            Giảm : <asp:Label runat="server" ID="lblGiamgia" ForeColor="Red" Text="" /><br />
                            Giá khuyến mãi : <asp:Label runat="server" ID="lblGiaKM" ForeColor="Red" Text="" />
                        </asp:Panel>
                        <asp:Panel ID="Panel2" runat="server" >
                            Giá : <asp:Label runat="server" ID="lblGia" ForeColor="Red" Text="" /><br />
                        </asp:Panel>
                    </td>
                    <td align="right">
                        <div class="details" style="text-align:center;">
                            <asp:HyperLink ID="hplDatHang" runat="server" Text="Đặt hàng" />
                        </div>                
                    </td>
                </tr>
            </table>
            <br />
            <b>Lượt xem : </b><asp:Label runat="server" ID="lblLuotXem" Font-Bold="true"/>
            <br />
            <asp:Literal runat="server" ID="lblDescription" />
        </td>
    </tr>
</table>     
 </div>
<div class="bottom"></div>
<div class="title">
    Các sản phẩm cùng loại</div>
<div class="body">
    <uc3:ProductsSameDepartment ID="ProductsSameDepartment1" runat="server" />
</div>
<div class="bottom"></div>    
</asp:Content>